Algebraic Multigrid Methods for Nonsymmetric and Indefinite Problems: Theory and Applications