In electric motors and electric generators, which part is responsible for transferring current from the power source to the commutator or from the slip rings to where the electricity is needed?