why is ammeter connected in series in an electric circuit?