Small-signal ac response theory for systems exhibiting diffusion and trapping of an electroactive species