Gray-cast iron classification based on graphite flakes using image morphology and neural networks