From multiphoton microscopy to optical nanoscopy for nano characterization and fabrication