Gravar-mail: An Optimization-Based Locomotion Controller for Quadruped Robots Leveraging Cartesian Impedance Control