Minigrid-JCC Optimizing the economic dispatch of weakly-connected mini-grids under uncertainty using joint chance constraints