Motion Control of Rigid Robot Manipulators via First and Second Order Sliding Modes