Tool monitoring and maintenance for automated machining process: an expert control system to assure guaranteed reliability