Thermal decomposition and detonation of mercury fulminate