Polarizability of a hydrogenic impurity in a quantum-well wire : Effect of finite barrier height and nonsquare cross-section