Viscous grain-boundary sliding and grain rotation accommodated by grain-boundary diffusion