Variable wavelength optical time-domain reflectometry