Kinematic analysis of geared robotic mechanism using Matroid and T–T graph methods