Dynamic in situ field emission of a nanotube at electromechanical resonance