How America reached the edge of energy independence