Spray-deposited NiO x films on ITO substrates as photoactive electrodes for p-type dye-sensitized solar cells