Vorticity-streamfunction formulation of the Navier-Stokes equations for predicting unsteady flow past bodies in arbitrary movement