Optical diffraction applied to electron microscopy. A model of diffractometer and image processing unit.