On the mechanism of trace-element uptake during the hydrothermal growth of sulfide mineral crystals