Solid-particle motion in two-dimensional peristaltic flows