Interface engineering for improving optical switching in a diarylethene-channel transistor