Event-triggered STED imaging