HOW DOES A BATTERY WORK IN AN INVERTER