Understanding Electromagnetic Radiation due to Partial Discharges by Simulating the Motion of a Group of Charged Particles and their Interaction