Intramolecular electron transfer in the photodimerisation product of a tetrathiafulvalene derivative in solution and on a surface