Cross-validated structure selection for neural networks