Photoionization and photoabsorption cross sections of He, O, N2 and O2 for aeronomic calculations