Smart instrumentation to improve robot-assisted eye surgery