Nuclear charge radii from X-ray transitions in muonic atoms of carbon, nitrogen and oxygen