A compact system for characterizing the spectrum and intensity profile of shortwave radiation beams