Dynamics of the optically pumped midinfrared NH3laser at high pump power - Part II: Raman gain and ac stark shifts