Light-assisted templated self-assembly of a gold nanoparticle array