Failure-resilient Graph-based SLAM for Autonomous Robotic Exploration in GNSS-Denied Environments