Air flow over foredunes and implications for sand transport