An Energy Tank-Based Interactive Control Architecture for Autonomous and Teleoperated Robotic Surgery