How is a value of electrical resistance determined?