A fractional-dimensional space approach to the polaron effect in quantum wells