Simulation of Planar Mechanism Dynamics with Index-I Formulation and Projection Method