Interlayer dynamics and phase transitions in vertically stacked 2D materials through hetero-strain and twist