Write the Nernst equation and emf of the following cells at 298 K:
(i) Mg(s) | Mg2+(0.001M) || Cu2+(0.0001 M) | Cu(s)
(ii) Fe(s) | Fe2+(0.001M) || H+(1M)|H2(g)(1bar) | Pt(s)
(iii) Sn(s) | Sn2+(0.050 M) || H+(0.020 M) | H2(g) (1 bar) | Pt(s)
(iv) Pt(s) | Br2(l) | Br−(0.010 M) || H+(0.030 M) | H2(g) (1 bar) | Pt(s).