Cramer-von Mises statistics for discrete distributions