Electron-Microscope-Beam Effects in the Investigation of Thin-Film Structure