Pattern recognition with machine learning on optical microscopy images of typical metallurgical microstructures