Struggling oil and gas companies are maxing out revolving credit lines typically used to cover short-term funding gaps, raising fresh concerns about banks’ exposure to the decline in energy prices. Midstates Petroleum Co., Linn Energy LLC and SandRidge Energy Inc. in recent weeks drew down the full balance of their revolving credit lines, they said, collectively borrowing more than $1.5 billion to build up cash cushions as the oil…