RKHS Representation of Measures Applied to Homogeneity, Independence, and Fourier Optics