An Overview of the Smart Grid