Conjugated polyelectrolytes with pH-dependent conformations and optical properties.