Rooftop solar to generate more than coal by 2040, saving billions