Latent variables and structural equation models for longitudinal relationships: an illustration in nutritional epidemiology