Group-Theoretical Method in the Many-Beam Theory of Electron Diffraction