Polaronic states that incorporate effects of phonon confinement in a rectangular quantum well wire