The intrinsic redox states in polypyrrole and polyaniline : a comparative study by XPS