Index-matched IWKB method for the measurement of spatially varying refractive index profiles within thin-film photovoltaics.