The effect of morphology of a legged robot on traversing rough terrain