The Development of Automated Diffraction in Scanning and Transmission Electron Microscopy