Mitigated Motion-Induced Signal Loss and Enabled Refractive Index Measurement in Optical Coherence Tomography