Petrographic Characterization Of Coal Using Automatic Image Analysis