Automated cost estimation for 3-axis CNC milling and stereolithography rapid phototyping