The general approach to mode-locking mechanism analysis for CW solid-state lasers with a nonlinear Fabry-Pérot interferometer