CO adsorption on the surface of MgO(001) thin films