Molecular adsorption on the surface of strongly correlated transition-metal oxides: A case study for CO/NiO(100)