Capturing the generation and structural transformations of molecular ions - Nature