Molecular design of precise ionic polymer networks for fundamental structure-property-relationships and energy-related applications