Multiple logic operations based on chemically triggered upconversion fluorescence switching.