What can affect the resistance of a conductor?