Automated detection and characterization of graphene and few-layer graphite via Raman spectroscopy