how is a mineral classified as a ore