Smart inductive sensors prevent incomplete engagement during automatic tool changes for compact machine-tool spindles