How carbon monoxide bonds to metal surfaces