Complex dynamics of planetary gear systems