Explain how an ohmmeter can measure the resistance of a component (such as a light bulb) when there is no battery or other source of power connected to it.