what is formed when different substances aare mixed together?