A Cognitive Robot Control Architecture for Autonomous Execution of Surgical Tasks