The Ihara zeta function for infinite graphs