A Type II Singularity Avoidance Algorithm for Parallel Manipulators using Output Twist Screws