Nanoscale imaging of phonon dynamics by electron microscopy