Spontaneous symmetry breaking and massive photons from a Fresnel-type potential