Impact-Aware Task-Space Quadratic-Programming Control