Integrated empirical measures and generalizations of classical goodness-of-fit statistics