Genesis of mercury ore deposits and sources of the substance in the ores