On the relationship between the greenhouse effect, atmospheric photochemistry, and species distribution