how to generate electicity with magnet and iron