Trace-element substitution in galena