how can temperature affect the formation of a solution