The authors of two buzzy new novels, Homegoing and Welcome to Lagos, explore ancient and modern stories of west Africa