Generalized joint interpolation explains straight and curved arm movements