Electromagnetic excitation and fragmentation of ultrarelativistic nuclei