how is a mineral classified as an ore