Resistivity and specific heat of a dilute magnetic alloy. I. Electron self energy