A convergence frame for inexact nonconvex and nonsmooth algorithms and its applications to several iterations