Stochastic Gradient Method with Barzilai–Borwein Step for Unconstrained Nonlinear Optimization