How Pakistan’s military is taking over its economy: The country’s armed forces have become intimately involved in everything from canal projects to energy contracts. Investors are increasingly nervous