RLOC: Terrain-Aware Legged Locomotion Using Reinforcement Learning and Optimal Control