What conditions must be present to enable a material to dissolve in another material?