Copolymerisation of aldehydes or ketones