Prototype of readout electronics for the LHAASO KM2A electromagnetic particle detectors