Structure factor and resistivity of copper and silver