Effect of anharmonicity on adsorption and reaction thermodynamics on solid surfaces