Reinforcement learning of potential fields to achieve limit-cycle walking