Backprojection for Training Feedforward Neural Networks in the Input and Feature Spaces