Vorticity dynamics in an oscillatory flow over a rippled bed