On the complexity of quadratic programming with two quadratic constraints