How to use solar energy to generate electricity in a house