Generation of transition radiation in the form of electromagnetic surface waves by electron bunches