A thermodynamics-based cohesive model for discrete element modelling of fracture in cemented materials