Transient field measurements of g-factors for 24Mg AND 26Mg