Optical inspection system for simultaneously measuring thicknesses and refractive indexes of multilayered transparent substrates