Ritz-like values in steplength selections for stochastic gradient methods