Dynamic Analysis of Robot Mechanisms by Means of Motor Algebra