Gamma-ray burst annihilation lines and neutron star structure