Nonlinear stability of the Boussinesq equations by the method of energy