Tools for chamfering the ends of bars or tubes