Application of the Monte Carlo method for the determination of physical parameters of an electrical discharge