Adaptive reachability assessment in the humanoid robot iCub