Potential-sweep voltammetry: Theoretical analysis of monomerization and dimerization mechanisms