On the recursion operator for the KP hierarchy in two and three spatial dimensions