Recursive M-estimation, nonlinear regression and neural network learning with dependent observations