NECESSARY AND SUFFICIENT CONDITIONS FOR NONLINEAR STABILITY IN THE MAGNETIC BENARD PROBLEM