The empirical duality gap of constrained statistical learning