The generation and composition of partial melts in the earth's mantle