Explain why electrolysis of an aqueous solution of NaCl gives \( \mathrm{H_2} \) gas at cathode and \( \mathrm{Cl_2} \) gas at anode ? Write overall reaction.
(Given : \( E^\circ_{\mathrm{Na^+/Na}} = -2.71 \ \mathrm{V} \), \( E^\circ_{\mathrm{H_2O/H_2}} = -0.83 \ \mathrm{V} \), \( E^\circ_{\mathrm{Cl_2/2Cl^-}} = +1.36 \ \mathrm{V} \), \( E^\circ_{\mathrm{H^+/O_2/H_2O}} = +1.23 \ \mathrm{V} \))