Light-induced synthesis of cross-linked polymers and their application in explosive detection