Find the quotient and remainder when p(x) is divided by q(x)$, where p(x) = x^4 - x^2 + 3x - 7 and q(x) = x^2 + 2x - 5.