measurement of resistance by ohms law