p-Doping of polystyrene polymers with attached functional side-groups from solution