On the calculation of electron diffraction intensities