Discretization of Continuous Random Distributions Based on the Minimization of a Statistical Distance between Cumulative Distribution Functions