Nearly-tight bounds on linear regions of piecewise linear neural networks