Investigating nanoscale dynamics in light absorbing nanostructures using transmission electron microscopy