Hybrid decomposition-based control co-design of energy systems using graph-based models