On the vortex formation in the mixing layer behind dunes