Effects of discrete controllers on the stabilization of natural convection induced by internal heat generation in a shallow cavity