Optical measurement of exposure depth and refractive index in positive photoresists