A Semismooth Newton-AMG Based Primal-dual Algorithm for Generalized Transport Problems