Bunch by bunch beam monitoring in 3rd and 4th generation light sources by means of single crystal diamond detectors and quantum well devices