Space-resolved and averaged electron density in a dielectric barrier discharge