Addition of a peristaltic wave improves multi-legged locomotion performance on complex terrains