Photons from quantized electric flux representations