Planning and Operation Framework of Smart Distributed Energy Resources in Emerging Distribution Systems