How rooftop solar and battery storage actually works