Mechanism of formation of FAB spectra