OPAA template-directed synthesis and optical properties of metal nanocrystals