Task-Space Riccati Feedback based Whole Body Control for Underactuated Legged Locomotion