Is it possible to distinguish between ionic and molecular compounds in terms of the basic units that each is composed of?