K-shell excitations in NO and O2 by 2.5 keV electron impact