Inferring incomplete lineage sorting, duplications, transfers and losses with reconciliations