Text this: An optimization approach to the determination of manipulator workspaces