An AC Power Supply with Sliding-Mode Control