Text this: A Generalized Distributed Energy Dispatch and Congestion Management Approach Applied to German and Japanese Grid Systems