Physics of high-pressure helium and argon radio-frequency plasmas