Chemical boundary layers in CVD II. Reversible reactions