Longitudinal dielectric constant for quantum wells