Successive Lagrangian relaxation algorithm for nonconvex quadratic optimization