Globally convergent online minimization algorithms for neural network training