Double Color Lanthanide Metal-Organic Framework Based Logic Device and Visual Ratiometric Fluorescence Water Microsensor for Solid Pharmaceuticals.