Modelling jointed rock mass as a continuum with an embedded cohesive-frictional model