How does a solar generator work?