what river flows through mali niger and nigeria?