Estimation of dynamic structural equation models with latent variables