Adaptive quadrature for maximum likelihood estimation of a class of dynamic latent variable models