On the mechanism of thymine photodimerization.