Co-Design Optimization of Combined Heat and Power-Based Microgrids