What 2 factors determine the rate of weathering?