Real-time deformation of polymers in the transmission electron microscope