Reversible aggregation of porphyrins in the solid state