Ecological and evolutionary perspectives on cancer