Smart grid and IoT technologies transforming the power grid