Learning in Feedforward Networks with Nonsmooth Functions