Inelastic X ray scattering under pressure to probe the quantum phase transition in the transition metal dichalcogenides