R3GS: Gaussian Splatting for Robust Reconstruction and Relocalization in Unconstrained Image Collections