Determination of liquid crystal refractive indices from critical angle measurements