Modelling of intact and jointed mudstone samples under uniaxial and triaxial compression