Engineering of Metal–Organic Frameworks as Ratiometric Sensors