Photoinduced Structural Dynamics Across The Metal-Insulator Transition In Rare-Earth Nickelates