Why carbon monoxide is stable lying down on a negatively charged Ru(001) surface but not on Pt(111)