Uniform TiO2–PANI composite capsules and hollow spheres