Rotational Energy Levels of an Alpha-Particle Model for the Beryllium and Carbon Isotopes