Simultaneous correction for interscan patient motion and geometric distortions in echoplanar imaging