Multi-functional 3D N-doped TiO2 microspheres used as scattering layers for dye-sensitized solar cells