Conjugate mathematical model of ignition of magnesium samples