Self-adjoint elliptic operators with boundary conditions on not closed hypersurfaces