Relationship between fractal dimension of multiple microcracks and fracture energy in rocks