Learning to Exploit Elastic Actuators for Quadruped Locomotion