On the platinum-oxide formation under gas-phase and electrochemical conditions