Static displacements and the electrical resistivity of interstitial alloys