Upconversion logic gates based on dual-wavelength excitation