Preparation of polymer-bound 1,2 - and 1,3 - diamines