Predicting excitation energies of twisted intramolecular charge-transfer states with time-dependent density functional theory: Comparison with experimental measurements in the gas-phase and solvents ranging from hexanes to acetonitrile.