Spatially resolved determination of thermal conductivity by Raman spectroscopy