compound are formed when two or more