Comparison of ion exchange properties of polypyrrole with and without immobilized dopants by optical beam deflection