Investigation on the nitrogen doping of multilayered, porous TiO2 thin films