Inertia conditions for the minimization of quadratic forms in indefinite metric spaces