Degradation of catalytic thin films revealed using transmission electron microscopy