Transition Radiation and its uses in particle accelerators