Essays on the Economics of Energy and Transportation