Numerical simulation of deflagration to detonation transition in granular HMX explosives under thermal ignition