On the benefits of hysteresis effects for closed-loop separation control using plasma actuation