Autonomous discovery of the goal space to learn a parameterized skill