A method for investigations of solid surfaces by nuclear spin relaxation