Photochemically formed refractive index profiles in nonlinear optical polymer thin films