Name the products formed at the cathode and at the anode when dilute acids and alkalis are electrolysed between platinum electrodes.