Managing Unbalanced Distribution Grid with Distributed Renewable Energy Sources and Electrical Vehicles