The structural and electronic properties of 3,3'-azothiophene photo-switching systems.