Gene tree reconstruction and orthology analysis based on an integrated model for duplications and sequence evolution