Low-cost growth of magnesium doped gallium nitride thin films by sol-gel spin coating method