Energy principle and nonlinear electric–mechanical behavior of ferroelectric ceramics