Infrared study on the thermal evolution of solid state formamide