Maximum likelihood estimation of nonlinear structural equation models