Ionic polarization effects on a shallow exciton at a finite temperature