Robust Bipedal Locomotion: Leveraging Saltation Matrices for Gait Optimization