Hysteresis comparator and its application in power electronics