In Situ Resonant Raman Spectroscopy to Monitor the Surface Functionalization of MoS2 and WSe2 for High-k Integration: A First-Principles Study.