Phonon-mediated renormalization of exciton energies and absorption spectra in polar semiconductors