An artificial intelligence enabled chemical synthesis robot for exploration and optimization of nanomaterials