Preparation of TiN–TiO2 composite nanoparticles for organic dye adsorption and photocatalysis