Impact of exposure induced refractive index changes of photoresists on the photolithographic process