Dynamic lattice distortions driven by surface trapping in semiconductor nanocrystals