Photooxidation and photodestruction of modified polyamides