Linear Polymer Comprising Dual Functionalities with Hierarchical Pores for Lithium Ion Batteries