A wave-interaction model for the generation of windrows