Atomic level resolution of dye regeneration in the dye-sensitized solar cell.