Force-driven reversible liquid–gas phase transition mediated by elastic nanosponges