Photochemistry of polymeric systems. VI. Photocrosslinking of basic polymers and copolymers dyeing