Dynamic modeling and control in joint space of a single flexible link manipulator using particle swarm optimization algorithm