Three-dimensional flow analysis of peristaltic flow