Online Signature Verification based on the Lagrange formulation with 2D and 3D robotic models