Single-phase H-bridge current hysteresis control closed-loop simulation