Metal-containing molecules and nanomaterials