Multiple photochemical switching device based on Langmuir–Blodgett films