The Giotto implanted ion spectrometer (IIS): principles of the electronic operation and data collection