Hydrolysis of cationic polyacrylamides