what is a mineral definition