Multicomponent measurements of the Jefferson Lab energy recovery linac electron beam using optical transition and diffraction radiation