The mixed dynamic form factor for atomic core-level excitations in interferometric electron-energy-loss experiments