Effect of synthesis variables on the characteristics of magnesium hydroxide nanoparticles and evaluation of the fluorescence of functionalised Mg(OH)2 nanoparticles