A vorticity-based criterion for dynamic stall onset