Rational Design of Memory-Based Sensors: The Case of Molecular Calorimeters