Eagle Rock Energy agrees to sell off midstream business