A Gravity Model of Sovereign Lending: Trade, Default, and Credit