Infrared spectroscopic study of the phase transitions in CsNO3, RbNO3 and NH4NO3