Optimal design of cable driven robot for rehabilitation with prescribed workspace