Atmospheric and sub-atmospheric dielectric barrier discharges in helium and nitrogen