Multiple Electronic and Structural Factors Control Cyclobutane Pyrimidine Dimer and 6–4 Thymine–Thymine Photodimerization in a DNA Duplex