Boundary pairs associated with quadratic forms