Gowers norms and pseudorandom measures of subsets