What factors affect the solubility of a solid?