A Dual Method for Quadratic Programs with Quadratic Constraints