Comparative studies of electron-impact and thermolytic fragmentation. I. Aromatic anhydrides