Machine learning approach for automated coal characterization using scanned electron microscopic images