Essays in energy economics and industrial organization