Adaptive Neural Network Control for a Class of Nonlinear Systems With Function Constraints on States