Mathematical and numerical modelling of shock initiation in heterogeneous solid explosives