Condensation-inhibited convection in hydrogen-rich atmospheres . Stability against double-diffusive processes and thermal profiles for Jupiter, Saturn, Uranus, and Neptune