Development of in-situ surface area analysis for detonators