Double core–hole correlation satellite spectra of N2 and CO molecules