An ac impedance analysis of conducting polymers