The econometrics of energy systems