Generic Function for the Computation of the Convex Contamination (Pseudo-)Distance of Two Distributions