Mixing by chaotic advection in a class of spatially periodic flows