Two photon spectroscopy of pyrazine and triazine