Photothermally induced Bergman cyclization of metalloenediynes via near-infrared ligand-to-metal charge-transfer excitation.