Zeta function derived from the boundary element method