Anion ordering transition and Fermi surface electron-hole instabilities in the (TMTSF)2ClO4and (TMTSF)2NO3Bechgaard salts analyzed through the first-principles Lindhard response function