how is voltage measured in a circuit