In situ nanoscale imaging of the electrochemical activation and degradation of carbon-supported octahedral Pt–Ni nanocatalysts in real time.