Application of Instantaneous Invariants to the Analysis and Synthesis of Mechanisms