MSE 640 Lecture 7: Dynamical effects in diffraction patterns