Charge storage mechanisms of a π–d conjugated polymer for advanced alkali-ion battery anodes