Reversible switching between linear and ring polystyrenes bearing porphyrin end groups.