Optimal design of neural networks using the Taguchi method