Recurrence and Polya number of general one-dimensional random walks