A novel AMG approach based on adaptive smoothing and prolongation for ill-conditioned systems