The role of trait achievement motivation and ability in predicting academic performance trajectories