The influence of lateral interactions on the vibrational spectrum of adsorbed CO