The effect of friction in transmission components on the dynamics of legged robots