Numerical modelling of unsteady flows around airfoils by a coupled potential-boundary-layer method