The formation of soil is primarily the result of