Particle-hole structures of neutron-rich Be- and C-isotopes