Analysis on shock attenuation in gap test configuration for characterizing energetic materials