The design of a variable‐step integrator for the simulation of gas transmission networks