Intrinsically Motivated Goal Exploration, Automated Curriculum Learning and Emergence of Tool Use