Nonlinear latent curve models for multivariate longitudinal data