Model of trace-metal partitioning in marine sediments