Optical nanoscopy of transient states in condensed matter