Spectral properties of substitutions on compact alphabets