Optical patterning and photochemical fixation of polymer nanoparticles on glass substrates