Tokyo is offering itself as an alternative to China as African nations reel from a debt crisis made worse by Western aid cuts, conflict and climate change.