Dual photo- and redox- active molecular switches for smart surfaces