How does the resistance of a conductor vary?