how to build a magnetic electric generator