Infrared and nuclear magnetic resonance of maleic anhydride copolymers and their half esters