Dynamical Effects on Atomic-Resolution Imaging and Diffraction of the Tetragonal and Orthorhombic Phases of LaFeAsO