Reconceptualizing the right to regulate in investment agreements: reflections from the South African and Brazilian experiences