Prospects for joint observations of gravitational waves and gamma rays from merging neutron star binaries