Upper-mesospheric temperatures measured during intense substorms in the declining phase of the January 2005 solar proton events