which rivers flows through mali and nigeria?