Text this: Original and diffracted transition radiation for diagnostics of relativistic electron beams