Terahertz and Raman spectroscopy studies on quantum magnets