Basics of Imaging and Diffraction for TEM and STEM