The shear and tensile strength of unsaturated soils by a grain-scale investigation