Boundary Form Criterion for Self-Adjoint Extensions