Crystal structure control on trace element partition in molluscan shell formation