Surfactant effect on synthesis and electrochemical properties of nickel-doped magnesium oxide (Ni–MgO) for supercapacitor applications