Revealing the active intermediates in the oxidation of formic acid on Au and Pt(111).