Assessment And Optimal Design Of Sustainable, Secure And Affordable Active Distribution Networks