The Variation Effect of Mg-doped NPs Prepared by Sol-Gel Method on its Structural Properties and Biological Activities