Distorted-wave impulse-approximation (p,π) calculations: Effects of realistic wave functions and factors determining resonance position