P-determinant regularization method for elliptic boundary problems