Online Assessment of Distributed Generation Connection for Smart Grid