The smart grid an introduction