Consideration of the electron energy distribution function shape in a Ar and N2 global model