Mechanistic insights into the photochromism of trans-10b,10c-dimethyl-10b,10c-dihydropyrene derivatives.