What factors affect solubility in water?