what is a cnc lathe used for