Quasiperiodicity and chaos during an electrochemical reaction