Fast charged-coupled device spectrometry using zoom-wavelength optics