A Mathematical Study of the Influence of Hypoxia and Acidity on the Evolutionary Dynamics of Cancer