5. What is the function of a voltmeter?