Synthesis and characterization of nitrogen-doped TiO2 samples and their application as thin film electrodes in dye-sensitized solar cells