Seawater as the source of minor elements in black shales, phosphorites and other sedimentary rocks