Synthesis of visible-light-active TiO2-based photocatalysts by carbon and nitrogen doping