Self-trapping of an electron by the surface modes