Dynamics of grain boundary motion coupled to shear deformation: An analytical model and its verification by molecular dynamics