An automated procedure for the geometrical characterization of root canals