Phase transitions and self-assembly in meso-tetrakis(undecyl)porphyrin