Decarbonising EU gas networks without stranded investment risks