Methodology for the generation and testing of a post-processor for a CNC lathe using commercially available CAM software