Optical properties of light-sensitive liquid-crystal elastomers in the vicinity of the nematic-paranematic phase transition