Heat-kernel expansion on noncompact domains and a generalized zeta-function regularization procedure