Sharp hysteresis loop of a Schmitt trigger