How does a solar inverter work?