Understanding the process of jointing in brittle rock masses