Faraday discovered that a current could be induced in a solenoid (a coil of wire) when _____.