Photonic scheme of discrete quantum Fourier transform for quantum algorithms via quantum dots