Microgrids and Methods of Analysis