Solid-state dye-sensitized solar cell with p-type NiO as a hole collector