Stability of Cyber-Physical Microgrids