An image-based method for determining bulk density and the soil shrinkage curve