Numerical experiments on the PF1000 plasma focus device operated with nitrogen and oxygen gases