Dipole coupling and chemical shifts in CO overlayers adsorved on NiO