Factors affecting temperature on Mars and Venus