Neutron scattering studies of doped iron pnictides