why current genrates when magnet bring near to coil