Density Dependence of the Exciton Energy in Semiconductors