prepare_trait_data function

Map trait evolution on a time-calibrated phylogeny