Computational infrared and Raman spectra by hybrid QM/MM techniques: a study on molecular and catalytic material systems