Advancing energy and climate planning models : optimisation methods, variable renewables, and smart grids