Mechanism of nitrate electroreduction on Pt(100)