Apparatus for spectrum and intensity profile characterization of a beam, use thereof and method thereof