Energy companies borrowed a lot of money when oil was worth over $100 a barrel. The returns seemed almost guaranteed if they could get the oil out of the ground. But now oil is barely trading just above $30 a barrel and a growing number of companies can’t pay back their debts.