Ignition and combustion of magnesium particles in a nonuniform thermal field