how does a multimeter work to measure voltage