On what factors does resistance of a conductor depend?