Analyzing role of relaxation time on second harmonic generation and optical dielectric function of impurity doped quantum dots under the aegis of noise