Terrain-Aware Bipedal Locomotion