how to build a dc generator with magnets