The effect of a two-dimensional structure on the dielectric constant and photovoltaic characteristics