Specifying Piecewise Latent Trajectory Models for Longitudinal Data