Ab initio calculation of residual resistivity in dilute Fe alloys and giant magnetoresistance in Fe/Cr multilayers