The energy method approach to the nonlinear stability of rigid motions of two immiscible liquids between rotating cylinders with endplates