Two-state random walk model of diffusion. 2. Oscillatory diffusion