General Application of Smart Inverters in Distribution and Smart Grid