Architecturally optimized neural networks trained with regularized backpropagation