Rheology phase reaction synthesis and thermal decomposition of magnesium phthalate dihydrate