Dynamic properties and nonlinear control of robots with mixed rigid/elastic joints