Critical Role of Protons for Emission Quenching of Indoline Dyes in Solution and on Semiconductor Surfaces