Resistive Switching Nanodevices Based on Metal–Organic Frameworks