Theory and modelling of diamond fracture from an atomic perspective