The correct way to generate electricity with solar cells