A mechanical nanomembrane detector for time-of-flight mass spectrometry.