Amplified wavelength–time transformation for real-time spectroscopy