The Loss Surfaces of Neural Networks with General Activation Functions