Real-Time Context-Aware Detection of Unsafe Events in Robot-Assisted Surgery