Transition radiation detector for relativistic particles at accelerator energies