Analytical model of ear dynamics and conditions for efficient grain extraction