Simulation of S/TEM Images for Discrete Dislocation Dynamics and Molecular Dynamics