Cost-Effective Pure Sine Wave Inverter for Various Electrical Appliances