What is the purpose of an ammeter?