Partial melting in a thermo-chemical boundary layer at the base of the mantle