Bénard-Marangoni convection in two thin immiscible liquid layers with a uniform magnetic field