Loop theory and applications to some key problems of kinematic structure of kinematic chains