Dye-sensitized solar cells: principles of operation