Theory of square wave voltammetry for kinetic systems