Neural networks for optimization of nonquadratic cost functions with application to adaptive signal processing