Quantitative spectral inequalities for the anisotropic Shubin operators and the Grushin operator