How do electric currents affect the strength of a magnetic field in a solenoid?