Interaction of pH-indicators with polymers: influence of substituents