A Smart Grid Solution Integrating Distributed Generation and Internet of Things Sensors for Demand Side Management and Fault Identification: Case Study