What factors affect the amount of precipitation?