Synthesis and foaming of styrene–ionic liquid copolymer