Ambient pressure XPS studies on electrochemical reactions