Using AI to automatically edit surgical videos and enhance documentation