Comparative study of the pressure dependence of optical-phonon transverse-effective charges and linewidths in wurtzite InN