Photochemical characterization of biomimetic molecular switches