Rapid discrimination and classification of polymorphs