Calculation of Reflected Intensities for Medium and High Energy Electron Diffraction