Theory of regeneration mechanisms in thin layer potential sweep voltammetry