Absorption and photoionization cross sections of O2and N2at intense solar emission lines