Credible Power-Sharing Agreements: Theory with Evidence from South Africa and Lebanon