A sufficient negative‐definiteness condition for cubic functions and application to time‐delay systems