A study of the relationship between lattice fringes and lattice planes in electron microscope images of crystals containing defects