Moving target defense for securing smart grid communications: Architectural design, implementation and evaluation