Effect of tool wear on tool and workpiece profiles produced in contour grinding