Fast response of the diffraction efficiency in photopolymer prepared by sol–gel process