Principle of measuring resistance with a multimeter