Hydrogen burning of 24, 25, 26Mg in explosive carbon burning