Solid solubility and grain boundary segregation