Alloyed PtNi counter electrodes for high-performance dye-sensitized solar cell applications