Synthesis and characterization of carbon-doped titania as a visible-light-sensitive photocatalyst