The Econometrics of Energy Systems