Neutron scattering study of the quasi-one-dimensional antiferromagnet Ba2CoSi2O7