add convergence checks to iterations in FirstOrderMinimizer