Quantum chemical modeling and preparation of a biomimetic photochemical switch