Discuss the theoretical aspects of kinematic synthesis in the design of mechanisms. How do the principles of motion constraint and mobility analysis guide the development of linkages and robotic systems, and what are the inherent challenges in achieving precise and optimal motion?