Computer-simulated electron diffraction patterns