A surplus based framework for cross-border electricity trade in South America