Excitons and the electronic polarization in semiconductors