Radiation-hydrodynamical models of X-ray photoevaporation in carbon-depleted circumstellar discs