Ab initio calculations of entropies of liquid alloys