Design and Simulation of a Single-Phase 400 Hz Inverter with Variable Input and Output Voltages