Redox-induced target-dependent ratiometric fluorescence sensing strategy and logic gate operation for detection of α-glucosidase activity and its inhibitor.