Electronic and geometric structure of CO on Ni(110): Experiment and theory