Abundance inhomogeneities and atmospheric structure in CN-bimodal globular cluster giants