Development of a ‘smart surgical instrument’