City and hospital make tentative agreement on ambulance transfers