A Novel Method to Determine the Redshifts of Active Galaxies Based on Wavelet Transform