The successor representation, gamma-models, and infinite-horizon prediction