The phase transitions of n-alkanes in mesoscopic pores of graphite