Sign reversal of magnetoresistance and inverse spin Hall effect in doped conducting polymers