Text this: Segmented constitutive relationship of weakly cemented sandstone and numerical implementation based on homogeneity