Mass gap and universality for euclidean O(N) and CPN−1 models