Carbon doping in metalorganic vapor phase epitaxy