What condition is necessary for the production of current by electromagnetic induction?