The polar transition in Li-doped and Nb-doped KTaO3: comparative analysis from hard-phonon Raman spectra