A _____________ uses a magnet to change mechanical energy into electrical energy