The Nexus of the Smart Grid and the Internet of Things