Elektroforesefr4emgangsmaade and apparatus for carrying out the method