Novel sol-gel synthesis of NiO/MgO nanocomposite for electrochemical studies and photocatalytic dye degradation under UV light | Synapse