Gas absorption accompanied by complex chemical reactions- I Reversible chemical reactions