A Computer-Oriented Approach for the automatic Generation and Solution of the Equations of Motion for Complex Mechanisms