Identification and estimation of nonlinear models with misclassification error using instrumental variables: A general solution