Identification, classification and isomorphism of kinematic chains and mechanism viaidentification codes