HOW DO INVERTERS WORK