Raman scattering and the evolution of polar order in Li-doped and Nb-doped KTaO3