what kind of particles make up a compound