Neutron Scattering Study of CoO6 Distortion and Its Relation to the Spin-State Transition in Pr0.5Ca0.5CoO3