Why is it that some compunds are soluble in water and others are not?