How to make a solar energy system cost-effective