Robustness and Perturbation Analysis of a Class of Nonlinear Systems with Applications to Neural Networks