Sustainable debt and deficits in emerging markets