Lyapunov–Krotov Inequality and Sufficient Conditions in Optimal Control