How to use solar energy to generate electricity for home use