Steplength and Mini-batch Size Selection in Stochastic Gradient Methods