Phenotypic trajectory analysis: comparison of shape change patterns in evolution and ecology