On the Θ-function of a Riemannian manifold with boundary