Photopolymerizable compositions and elements for refractive index imaging