solar battery vs generator