Process planning and contour-based error compensation for precision grinding of miniature scalpels