Design and stability and robustness analyses of neural networks in control systems