Tuning stable and unstable aggregates of gallic acid capped gold nanoparticles using Mg2+ as coordinating agent