Effects of 3D modeling on the void collapse in energetic materials