Synthesis and characterization of an ionic liquid–carboxylic acid copolymer scale inhibitor and its scale inhibition performance