Limit cycles due to friction forces in flexible joint mechanisms