how to generate electricity at night