Which factor has the least effect on the weathering of a rock?