by thermal decomposition of magnesium compounds