Measuring surgical safety during minimally invasive surgical procedures: a validation study