Models and methods for electricity and gas markets in a low-carbon economy