Improved the calculation of the mineral share of ores.

It used to be a value stored in the many-to-many relation ores-minerals.
Now the calculation is coded and uses the basic variation of the ore.
Since the ores-minerals many-to-many relation was only used for storing
the percentage of each mineral for given ore it's now getting deleting.