In situ high-resolution transmission electron microscopy of material reactions