Co-optimized analysis of electric and natural gas infrastructures