An introduction to the dynamical scattering of electrons by crystals