Mass ejection from the merger of binary neutron stars