Relating the in-situ, ex-situ, and non-situ environments in surface electrochemistry