MHD natural convection flow in cavities filled with square solid blocks