Mass transfer accompanied by equilibrium and second-order irreversible reactions