Theory of staircase voltammetry for simple electrode reactions