Spectrophotometric redshifts A new approach to the reduction of noisy spectra and its application to GRB 090423