Prompt analysis of heavy elements by high-energy-induced (p, X) reactions