MHD natural convection phase-change heat transfer in a cavity: analysis of the magnetic field effect