Phase transition of docosane in nanopores