SDP relaxation of homogeneous quadratic optimization: Approximation bounds and applications