Multivariate error components analysis of linear and nonlinear regression models by maximum likelihood