Sliding Mode Fault Diagnosis with Vision in the Loop for Robot Manipulators