Adsorption of organic dyes on TiO2 surfaces in dye-sensitized solar cells: interplay of theory and experiment