Investigation of potential curves of ionized states of homonuclear molecules N2 and F2 by means of self-consistent field Xα scattered wave method