Factors on which soil resistance depends ?