Improved chemical potential calculation for multi-sublattice case.
Fix to calculate gradient without including the phase fractions.