Modified Poisson–Nernst–Planck theory for ion transport in polymeric electrolytes