An efficient algebraic multigrid method for second order elliptic equations on polygonal domains