why is an ammeter connected in series in a circuit