Detection and isolation of actuator faults and collisions for a flexible robot arm