Amorphous electrocatalysts formed by near-infrared-driven decomposition