what are minerals and why are they mined