Contribution of space charges to the polarization of ferroelectric superlattices and its effect on dielectric properties