Generating Thematic Maps From Hyperspectral Imagery Using A Bag-Of-Materials Model