Zeta function of self-adjoint operators on surfaces of revolution