Smart integration of renewable energy sources, energy storage systems and electric vehicles in electric distribution system