Diagnostic techniques for photonic materials based on Raman and Brillouin spectroscopies