What device is used to measure the intensity of an electric current, and how must it be connected in the circuit?