Boundary conditions for singular perturbations of self-adjoint operators