Investigation of effective potential of electron-ion interaction in semibounded metal