The electronics and trigger system of the High Energy Particle Detector (HEPD) onboard the China Electromagnetic Satellite (CSES)