Maximum Likelihood Estimation and Large-Sample Inference for Generalized Linear and Nonlinear Regression Models