A study on the solubility and distribution of carbon in oxides