Stochastic modified equations and adaptive stochastic gradient algorithms