Bounds on the Complexity of Neural-Network Models and Comparison With Linear Methods