Electricity system modelling for optimal planning and technology valuation