Optimal Control of Compliant Bipedal Gaits and Their Implementation on Robot Hardware